package com.szqhyxj.youxiangju.biz.partnerHome.my;

import com.szqhyxj.youxiangju.R;

import java.util.ArrayList;
import java.util.List;

public class PartnerMyModel {

    static class IconItem {
        private int icon;
        private String title;
        private String subTitle;
        private int subTitleColor;
        private ICON id;

        IconItem(int icon, String title, String subTitle, int subTitleColor, ICON id) {
            this.icon = icon;
            this.title = title;
            this.subTitle = subTitle;
            this.subTitleColor = subTitleColor;
            this.id = id;
        }

        public int getIcon() {
            return icon;
        }

        public String getTitle() {
            return title;
        }

        public String getSubTitle() {
            return subTitle;
        }

        public int getSubTitleColor() {
            return subTitleColor;
        }

        public ICON getId() {
            return id;
        }
    }

    public enum ICON {
        DEVICE_ORDER,
        POWERATTORNEY,
        TEAM,
        CONTACT,
        FEEDBACK,
        SETTING
    }

    public static List<IconItem> getIconItems() {
        int[] icons = {R.mipmap.goujidingdan, R.mipmap.shouquanshu, R.mipmap.hehuoren,
                R.mipmap.lianxikefu, R.mipmap.yijianfankui, R.mipmap.shezhi
        };
        String[] titles = {"购机订单",
                "授权书", "合伙人",
                "联系客服", "意见反馈", "设置"
        };
        String[] subTitles = new String[0];

        subTitles = new String[]{
                "", "",
                "", "", "", ""};


        int[] subTitleColors = {
                0, 0, R.color.invitationColor,
                0, 0, R.color.gray,
                R.color.gray, 0, 0
        };
        ICON[] ids = {ICON.DEVICE_ORDER, ICON.POWERATTORNEY, ICON.TEAM, ICON.CONTACT,
                ICON.FEEDBACK, ICON.SETTING
        };
        List<IconItem> iconItemList = new ArrayList<>();
        for (int i = 0; i < 6; i++) {

            iconItemList.add(new IconItem(
                    icons[i],
                    titles[i],
                    subTitles[i],
                    subTitleColors[i],
                    ids[i]
            ));
        }
        return iconItemList;
    }
}